package server.locations;

import server.players.Player;
import server.players.PlayerGroup;

public class Planet extends Location{
	private String name;
	private PlanetType pt;

	
	public Planet(String name, PlanetType pt) {
		this.name = name;
		this.pt = pt;
	}
	
	
	@Override
	public void addPlayerGroup(PlayerGroup playerGroup) {
		this.removePlayerGroupFromCurrentLocation(playerGroup);
		playerGroup.setLocation(this);
		this.playerGroups.add(playerGroup);
		// TODO Send packets to all other player groups, detailing the arrival
	}
	
	public String getName() { return this.name; }


}
